<div class="page-header">
    <div class="pull-left">
        <h1 class="content-title">店组管理</h1>
        <ul class="fl">
            <li>
                <button class="btn btn-block btn-info newEnum"><i class="fui-plus-circle icon-menu"></i>
                    <span>新建店组</span>
                </button>
            </li>
            <li>
                <button class="btn btn-block btn-success relateShop"><i class="fa fa-desktop icon-menu"></i>
                    <span>关联门店</span>
                </button>
            </li>
        </ul>
    </div>
</div>
<div class="dolphin-col-24 main" id="myContent">
    <div class="row">
        <div class="col-md-6">
            <div class="panel panel-primary box">
                <div class="panel-heading box-title">
                    <h3 class="panel-title">
                        <i class="fa fa-table fa-lg" aria-hidden="true"></i>
                        店组列表
                    </h3>
                </div>
                <div id="enumList"></div>
            </div>
        </div>
        <div class="col-md-6">
            <div class="panel panel-info" id="enum_option">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <i class="fa fa-list fa-lg" aria-hidden="true"></i>
                        门店列表
                    </h3>
                </div>
                <div id="enumItemList"></div>
            </div>
        </div>
    </div>
</div>

<div class="modal" id="enum_win">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <span class="modal-title">店组维护</span>
            </div>
            <div class="modal-body">
                <form class="form-horizontal edit-form">
                    <input type="hidden" class="form-control" name="id">
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label">店组名称</label>
                        <div class="col-md-6">
                            <input class="form-control" name="name" type="text" dol-validate="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label">店组编码</label>
                        <div class="col-md-6">
                            <input class="form-control" name="code" type="text" dol-validate="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label">备注信息</label>
                        <div class="col-md-6">
                            <textarea class="form-control" name="remark"></textarea>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary enum_submit"><%= __('account.save') %></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
</div>

<div class="modal" id="shop_win">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <span class="modal-title">门店选择</span>
            </div>
            <div class="modal-body">
                <form class="form-horizontal shop-form">
                    <input type="hidden" name="cusId" id="holderid">
                    <input type="hidden" name="grpId">
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.storeCode') %></label>
                        <div class="col-md-6">
                            <div class="input-group">
                                <input class="form-control" name="holderCode" id="holdercode" type="text"
                                       placeholder="输入编码，自动联想" autocomplete="off">
                                <div class="input-group-btn" style="">
                                    <button style="height: 32px;width: 20px;" type="button"
                                            class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                        <span class="caret" style="margin-left: 2px;margin-bottom: 9px;"></span>
                                    </button>
                                    <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label"><%= __('framework.storeName') %></label>
                        <div class="col-md-6">
                            <input class="form-control" id="shopName" type="text" readonly dol-validate="required">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary shop_submit"><%= __('account.save') %></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
</div>

<script src="<%= global.config.publicPath %>/bootstrap/bootstrap-suggest.js"></script>
<script src="<%= global.config.publicPath %>/page/scripts/<%= path %>.js"></script>